using UnityEngine;
using Voodoo.Sauce.Debugger;

public class SampleCustomDebugger : CustomDebugger
{
	private string _myString;

	private bool _myBool;

	public override string GetTitle()
	{
		return "My Menu 1";
	}

	public override int GetOrderIndex()
	{
		return 0;
	}

	public override void SetupScreen(Voodoo.Sauce.Debugger.Screen screen)
	{
		screen.Label("Buttons");
		screen.Button("Button 1", delegate
		{
			Debug.Log("Button 1");
		});
		screen.ButtonWithInput("Button 2", "Value", SetMyString, GetMyString);
		screen.Label("Text Pairs");
		screen.Label("Label");
		screen.Label("Text Pair 2", "Some value to copy");
		screen.Label("Text Pair 3", GetMyString);
		screen.Label("Misc");
		screen.Toggle("Toggle", GetMyBool(), SetMyBool);
	}

	private bool GetMyBool()
	{
		return _myBool;
	}

	private void SetMyBool(bool obj)
	{
		_myBool = obj;
	}

	private string GetMyString()
	{
		return _myString;
	}

	private void SetMyString(string obj)
	{
		_myString = obj;
	}
}
